<?php

require_once("xmlparser.php");

class XMLCenterParser extends XMLParser {
    protected function getResult() {
        $src = htmlspecialchars($this->array["center"]["_"]["source"]);
	$hps = htmlspecialchars($this->array["center"]["cdata"]);	
	$result = "<strong>$src</strong> has an average number of <strong>$hps</strong>.";
        return $result;
    }
}
?>
